package com.hushow.plugin.brick;

import com.gitee.starblues.loader.DevelopmentMode;
import com.gitee.starblues.loader.launcher.SpringBootstrap;
import com.gitee.starblues.loader.launcher.SpringMainBootstrap;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication(scanBasePackages = {"com.hushow.plugin.brick.**"})
@MapperScan("com.hushow.plugin.brick.mapper")
public class BrickIsolationDemoApplication implements SpringBootstrap {

	public static void main(String[] args) {
		SpringMainBootstrap.launch(BrickIsolationDemoApplication.class, args);
	}

	@Override
	public void run(String[] args) {
		SpringApplication.run(BrickIsolationDemoApplication.class, args);
	}

	@Override
	public String developmentMode() {
		return DevelopmentMode.ISOLATION;
	}
}
